package com.watering.plan;

import java.util.LinkedList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.Toast;

public class Schedule extends Activity {
	
	public int startDayH; // Day Restrictions
	public int startDayM;
	public int stopDayH;
	public int stopDayM;
	public int startNightH; //Night Restrictions
	public int startNightM;
	public int stopNightH;
	public int stopNightM;
	public int startVacH; // Vacation Restriction
	public int startVacM;
	public int stopVacH;
	public int stopVacM;
	public Toast ts;
	
	public int Modified; // RestrictionsModified
	public LinkedList<Entry> list; // List of all the scheduled events
	
	public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
         setContentView(R.layout.schedule);
         
         ts =  Toast.makeText(this, R.string.schedule_help, Toast.LENGTH_SHORT);
         ts.setDuration(Toast.LENGTH_LONG);
         
         ImageView img = (ImageView)findViewById(R.id.helpbutton);
         img.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	ts.show();
	         }
	     });
    
         Button dayRestrictionBut = (Button) findViewById(R.id.dayrestriction);
         dayRestrictionBut.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(Schedule.this, DayRestrictions.class);
	     		startActivity(myIntent); 
	         }
	     });
         
         Button nightRestrictionBut = (Button) findViewById(R.id.nightrestriction);
         nightRestrictionBut.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(Schedule.this, NightRestrictions.class);
	     		startActivity(myIntent); 
	         }
	     });
         
         Button vacationRestrictionBut = (Button) findViewById(R.id.vacationrestriction);
         vacationRestrictionBut.setOnClickListener(new OnClickListener() {
	         public void onClick(View v) {
	        	Intent myIntent = new Intent(Schedule.this, VacationRestrictions.class);
	     		startActivity(myIntent); 
	         }
	     });
         
   //      Button But4 = (Button) findViewById(R.id.Button04);
   //      But4.setOnClickListener(new OnClickListener() {
	//         public void onClick(View v) {
	        	//Intent myIntent = new Intent(Schedule.this, DayRestrictions.class);
	     		//startActivity(myIntent); 
	        	
	//         }
	//     });
	     
	}  
}